import request from '@/utils/request'

export function cityList() {
  return request({
    url: '/bus/zjCounty/listPc',
    method: 'get'
  })
}

// 列表
export function getList(data) {
  return request({
    url: '/bus/policy/page',
    method: 'post',
    data: data
  })
}
export function getDataById(data) {
  return request({
    url: '/bus/policy/getInfo/' + data,
    method: 'get'
  })
}

export function addData(data) {
  return request({
    url: '/bus/policy/add',
    method: 'post',
    data: data
  })
}
export function editData(data) {
  return request({
    url: '/bus/policy/edit',
    method: 'post',
    data: data
  })
}
export function removeData(data) {
  return request({
    url: '/bus/policy/remove/' + data,
    method: 'post',
    data: data
  })
}

export function getSystem(data) {
  return request({
    url: '/system/config/listAllConfig',
    method: 'get',
    params: data
  })
}

export function updateSystem(data) {
  return request({
    url: '/system/config/updateOutConfig',
    method: 'post',
    data: data
  })
}

// 列表
export function getSetList(data) {
  return request({
    url: '/bus/busConfig/list',
    method: 'post',
    data: data
  })
}
export function getSetById(data) {
  return request({
    url: '/bus/busConfig/getInfo/' + data,
    method: 'get'
  })
}

export function addSet(data) {
  return request({
    url: '/bus/busConfig/add',
    method: 'post',
    data: data
  })
}
export function editSet(data) {
  return request({
    url: '/bus/busConfig/edit',
    method: 'post',
    data: data
  })
}
export function removeSet(data) {
  return request({
    url: '/bus/busConfig/removeBatch/' + data,
    method: 'post',
    data: data
  })
}